﻿using Joy.Erp.BasicArchives.Core;
using System.Threading.Tasks;

namespace Joy.Erp.BasicArchives.SerialNumbers
{
    public interface ISerialNumberManager
    {
        Task<long> NextAsync(string key, long start = 1, long stride = 1, ResetInterval resetInterval = ResetInterval.None);

        Task<long> RestartAsync(string key, long start = 1);
    }
}
